package com.asiainfo.eom.service;



import com.asiainfo.eom.entity.AdPlan;
import com.asiainfo.eom.vo.AdPlanGetRequest;

import java.util.List;

public interface IAdPlanService {

    AdPlan findByIdAndUserId(Long id, Long userId);

    List<AdPlan> findAllByIdInAndUserId(List<Long> ids, Long userId);

    AdPlan findByUserIdAndPlanName(Long userId, String planName);

    List<AdPlan> findAllByPlanStatus(Integer status);

    /** 创建推广计划 */
    AdPlanResponse createAdPlan(AdPlanRequest request) throws AdException;

    /** * 获取推广计划 */
    List<AdPlan> getAdPlanByIds(AdPlanGetRequest request) throws AdException;

    /** * 更新推广计划 */
    AdPlanResponse updateAdPlan(AdPlanRequest request) throws AdException;

    /** 删除推广计划 */
    void deleteAdPlan(AdPlanRequest request) throws AdException;
}
